cmake_minimum_required(VERSION 3.20)

project(carbon 
    VERSION 0.1.0
    LANGUAGES C CXX
)

# 选项，是否构建动态库
option(BUILD_SHARED_LIBS "Build shared libraries" OFF)

set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED True)      # 是否强制指定C++标准

set(CMAKE_BUILD_TYPE Debug)

INCLUDE_DIRECTORIES(
    ${PROJECT_SOURCE_DIR}/include
)

#set(CIVETWEB_BUILD_TESTING OFF CACHE BOOL "Disable Test")
#set(CIVETWEB_ENABLE_CXX ON CACHE BOOL "Enable c++" FORCE)
#set(CIVETWEB_ENABLE_ASAN OFF CACHE BOOL "Disable c++" FORCE)
#add_subdirectory(3rd/civetweb)

add_compile_options(-fvisibility=hidden)

add_subdirectory(libs)
add_subdirectory(test)
add_subdirectory(programs)

